package com.vcredit.creditcat.dto.resource;

import java.io.Serializable;

import com.vcredit.creditcat.enumtype.ResourceTypeEnum;

/**
 * 资源信息
 * 
 * @author chengchao
 *
 */
public class ResourceDto implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	/**
	 * resourceId
	 */
	private Long resourceId;

	/**
	 * 资源类型
	 */
	private ResourceTypeEnum resourceType;

	/**
	 * 资源标识符
	 */
	private String resourceCode;

	/**
	 * 资源内容
	 */
	private byte[] resourceContent;

	public ResourceDto(Long resourceId, ResourceTypeEnum resourceType, String resourceCode, byte[] resourceContent) {
		super();
		this.resourceId = resourceId;
		this.resourceType = resourceType;
		this.resourceCode = resourceCode;
		this.resourceContent = resourceContent;
	}

	public Long getResourceId() {
		return resourceId;
	}

	public void setResourceId(Long resourceId) {
		this.resourceId = resourceId;
	}

	public byte[] getResourceContent() {
		return resourceContent;
	}

	public void setResourceContent(byte[] resourceContent) {
		this.resourceContent = resourceContent;
	}

	public ResourceTypeEnum getResourceType() {
		return resourceType;
	}

	public void setResourceType(ResourceTypeEnum resourceType) {
		this.resourceType = resourceType;
	}

	public String getResourceCode() {
		return resourceCode;
	}

	public void setResourceCode(String resourceCode) {
		this.resourceCode = resourceCode;
	}

	public ResourceDto(ResourceTypeEnum resourceType, String resourceCode, byte[] resourceContent) {
		super();
		this.resourceType = resourceType;
		this.resourceCode = resourceCode;
		this.resourceContent = resourceContent;
	}

	public ResourceDto() {
		super();
	}

}
